﻿<%@ Page Title="" Language="C#" MasterPageFile="~/CustomerPanel/CustomerSite.Master"
AutoEventWireup="true" CodeBehind="ChangePassword.aspx.cs" Inherits="FastTrackCabService.CustomerPanel.ChangePassword" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
    <title>Fast Track | Change Password</title>
    <link href="../Style/CustomerChangePassword.css" rel="stylesheet" type="text/css"/>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div id="changePassDiv">
                <table id="tblchangePass" border="0">
                    <tr>
                        <th colspan="2">
                            <h2>
                                Change Password
                            </h2>
                        </th>
                    </tr>
                    <tr>
                        <td colspan="2">
                            Current Password
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:TextBox ID="txtCurrentPassword" runat="server" CssClass="changePassTextbox"
                                         MaxLength="40" TextMode="Password">
                            </asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorPass" ForeColor="Red" runat="server"
                                                        ErrorMessage="Current password is required" Text="*" ControlToValidate="txtCurrentPassword"
                                                        ValidationGroup="changePass"/>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            New Password
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:TextBox ID="txtNewPassword" runat="server" CssClass="changePassTextbox" MaxLength="40"
                                         TextMode="Password">
                            </asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorNewPass" ForeColor="Red" runat="server"
                                                        ErrorMessage="New password is required" Text="*" ControlToValidate="txtNewPassword"
                                                        ValidationGroup="changePass"/>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            Re-enter New Password
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:TextBox ID="txtReNewPassword" runat="server" CssClass="changePassTextbox" MaxLength="40"
                                         TextMode="Password">
                            </asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorReNewPass" ForeColor="Red"
                                                        runat="server" ErrorMessage="Re-enter new your password" Text="*" ControlToValidate="txtReNewPassword"
                                                        Display="Dynamic" ValidationGroup="changePass"/>
                            <asp:CompareValidator ID="CompareValidatorPass" runat="server" Text="*" ErrorMessage="Passwords are not matching"
                                                  ForeColor="Red" ControlToValidate="txtNewPassword" ControlToCompare="txtReNewPassword"
                                                  ValidationGroup="changePass" Display="Dynamic"/>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: center">
                            <asp:Button ID="btnReset" runat="server" Text="Reset" CssClass="changePassResetButton"
                                        ValidationGroup="NONE" OnClick="btnReset_OnClick"/>
                        </td>
                        <td style="text-align: center">
                            <asp:Button ID="btnUpdate" runat="server" Text="Update" CssClass="changePassUpdateButton"
                                        ValidationGroup="changePass" OnClick="btnUpdate_OnClick"/>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" style="text-align: center">
                            <asp:Label ID="lblStatus" runat="server" Text=""></asp:Label>
                        </td>
                    </tr>
                </table>
            </div>
            <div id="changePassValidation">
                <asp:ValidationSummary ID="ValidationSummary" runat="server" CssClass="ValidationSummary"
                                       ValidationGroup="changePass" HeaderText="&lt;b&gt;Please fix following error(s):&lt;/b&gt;"
                                       DisplayMode="List"/>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>